import { createStore, applyMiddleware } from 'redux'
// 这是帮助我们在redux中实现异步操作的中间件
import thunk from 'redux-thunk'
import reducer from './reducer'
//调用applyMiddleware表示在redux中使用中间件
const store = createStore(reducer,applyMiddleware(thunk))


export default store
